KER_DIR = /home/hqyj/temp/linux-3.14
CUR_DIR = $(shell pwd)

ifeq ($(KERNELRELEASE), )

all:
	make -C $(KER_DIR) M=$(CUR_DIR) modules
	arm-none-linux-gnueabi-gcc app.c -lpthread

clean:
	make -C $(KER_DIR) M=$(CUR_DIR) clean
	rm a.out

install:
	cp *.ko /home/hqyj/nfsdir
	cp a.out /home/hqyj/nfsdir

else

obj-m += mychr.o

endif
